package com.renting.modules.sys.entity;

import java.util.List;

/**
 * 字典类
 */
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

import com.renting.common.entity.BaseEntity;
import com.renting.modules.renting.rentSys.entity.House;

@Entity
@Table(name = "SYS_BADGE")
public class Badge extends BaseEntity {

	private String label;// 徽章名称
	private String value;// 徽章的值
	private String type;// 徽章类型
	private String icon;// 徽章字体图标

	@ManyToMany(mappedBy = "badges")
	private List<House> houses;

	
	
	public List<House> getHouses() {
		return houses;
	}

	public void setHouses(List<House> houses) {
		this.houses = houses;
	}

	public Badge() {
		super();
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
